<extend name="Public/base" />

<block name="body">
	<div class="main-title cf">
		<h2>新增模型</h2>
	</div>

	<!-- 标签页导航 -->
	<div class="tab-wrap">
		<div class="tab-content">
			<!-- 表单 -->
			<form id="form" action="" method="post" class="form-horizontal doc-modal-form">
				<!-- 基础 -->
				<div id="tab1" class="tab-pane in tab1">
					<div class="form-item cf">
						<label class="item-label">产品名称<span class="check-tips">（请输入产品名称）</span></label>
						<div class="controls">
							<input type="text" class="text input-large" name="name" value="{$data['name']}">
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">产品类型<span class="check-tips">（默认产品:会员认证成功默认给定的产品/指定产品:手动分配的产品）</span></label>
						<div class="controls">
							<select name="start">
								<option value="1" <?php if($data['start']==1){echo 'selected';}?>>默认产品</option>
								<option value="2" <?php if($data['start']==2){echo 'selected';}?>>指定产品</option>
							</select>
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">借贷金额<span class="check-tips">（请输入借贷金额）</span></label>
						<div class="controls">
							<input type="text" class="text input-large" name="money" value="{$data['money']}">元
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">借贷天数<span class="check-tips">（请输入借贷天数）</span></label>
						<div class="controls">
							<input type="text" class="text input-large" name="time" value="{$data['time']}">天
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">借贷利息<span class="check-tips">（请输入1天的借贷利息）</span></label>
						<div class="controls">
							<input type="text" class="text input-large" name="lixi" value="{$data['lixi']}">%
						</div>
					</div>
					<div class="form-item cf">
						<label class="item-label">借贷描述<span class="check-tips">（请输入借贷描述）</span></label>
						<div class="controls">
							<input type="text" class="text input-large" name="msg" value="{$data['msg']}">
						</div>
					</div>
				</div>

				<!-- 按钮 -->
				<div class="form-item cf">
					<label class="item-label"></label>
					<div class="controls edit_sort_btn">
						<input type="hidden" name="id" value="{$data['id']}"/>
						<button class="btn submit-btn ajax-post no-refresh" type="submit" target-form="form-horizontal">确 定</button>
						<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</block>
<block name="script">
<script type="text/javascript" src="__STATIC__/jquery.dragsort-0.5.1.min.js"></script>
<script type="text/javascript" charset="utf-8">
    //导航高亮
    $('.side-sub-menu').find('a[href="{:U('tbd/shop')}"]').closest('li').addClass('current');

    $(function(){
    	showTab();
    })

</script>
</block>

